#include "List.h"

void ListNodeTest1()
{
	LTNode* plist = NULL;
	plist = ListInit();

	ListPushBack(plist, 1);
	ListPushBack(plist, 2);
	ListPopBack(plist);
	ListPushFront(plist, 2);
	ListPopFront(plist);
	ListPopFront(plist);
	ListPushBack(plist, 10);
	ListPushBack(plist, 100);
	ListPushBack(plist, 1000);

	LTNode* pos = ListFind(plist, 100);
	ListInsert(pos, 110);

	ListErase(pos);
	pos = NULL;
	

	LIstPrint(plist);
	ListDestroy(plist);
	plist = NULL;
}


int main()
{
	ListNodeTest1();

	return 0;
}